package com.itheima.area.service.impl;

import com.itheima.area.dao.DeviceDao;
import com.itheima.area.pojo.CustFarmlandDevice;
import com.itheima.area.service.DeviceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @PackageName com.itheima.area.service.impl
 * @ProjectName Ceres-Work
 * @Created by Chanly on 2020/10/15 21:00
 **/
@Service
public class DeviceServiceImpl implements DeviceService {
    @Autowired
    private DeviceDao deviceDao;
    @Override
    public List<CustFarmlandDevice> findAll() {
        return deviceDao.selectAll();
    }
}
